//
//  ZYLComicModel.m
//  Cartoon
//
//  Created by dllo on 15/7/16.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ZYLComicModel.h"

@implementation ZYLComicModel
- (void)dealloc
{
    [_model release];
    [_comicsID release];
    [_title release];
    [_cover_image_url release];
    [super dealloc];
}

- (instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        self.model = [[ZYLSearchResultModel alloc]initWithDic:dic[@"topic"]];
        self.comicsID = dic[@"id"];
        [self.model release];
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}
@end
